/**
 * Three.js单例导出
 * 确保整个应用中只有一个Three.js实例，避免多个实例冲突
 */

// 从npm包导入Three.js核心和插件
import * as THREE from 'three';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
import { VRButton } from 'three/addons/webxr/VRButton.js';
import { XRControllerModelFactory } from 'three/addons/webxr/XRControllerModelFactory.js';
import { XRHandModelFactory } from 'three/addons/webxr/XRHandModelFactory.js';

// 导出所有需要的模块
export { THREE, GLTFLoader, OrbitControls, VRButton, XRControllerModelFactory, XRHandModelFactory };